const express = require("express");

const User = require("../../models/User");

const router = express.Router({
  mergeParams: true,
});


//查询用户
router.get("/user/infos/:id",async(req,res)=>{
    const id=req.params.id;
    const itmes = await User.findById(id);
    res.send(itmes);
  });

module.exports = router;